﻿using Volo.Abp.EventBus.Distributed;

namespace Ebusiness_OrderService.DomainEvent.Dto
{
    /// <summary>
    /// 订阅事件 消费者    Queue 创建	使用 {ClientName}_{RoutingKey} 格式
    /// </summary>
    public class OrderCreatedHandler : IDistributedEventHandler<OrderCreatedEto>
    {
        public Task HandleEventAsync(OrderCreatedEto eventData)
        {
            Console.WriteLine($"[NotifyService] 接收到订单：{eventData.OrderId}");
            return Task.CompletedTask;
        }
    }
}
